<?php
class AboutTableSeeder extends Seeder {
	public function run() {
		DB::table('abouts')->truncate();
		
		$abouts = array(
            array(
                'name' => "email",
                'description' => " dat.huynh@huynhdgiatien.com",
            ),
            array(
                'name' => "phone",
                'description' => "0906801013" 
            ),
            array(
                'name' => "yahoo",
                'description' => "chushop"
            ),
            array(
                'name' => "facebook",
                'description' => "facebook"
            ),
            array(
                'name' => "address",
                'description' => "HCM"
            )
		);
		foreach ($abouts as $about) {
			$new_about = new About();
			$new_about->name = $about['name'];
			$new_about->description = $about['description'];
			$new_about->save();
		}
	}

}